package com.tt.fashionWebSite.dao.jpa;

import com.tt.fashionWebSite.dao.TapLuatDao;
import com.tt.fashionWebSite.domain.TapLuat;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by isoft-work 5 on 12/28/2014.
 */
@Repository("tapLuat")
public class TapLuatJpaDao extends GenericJpaDao<TapLuat,Integer> implements TapLuatDao {
   public TapLuatJpaDao(){
      super(TapLuat.class);
   }

   @Override
   public List<TapLuat> getAll() {
      return getEntityManager().createNamedQuery(TapLuat.GET_ALL_INFO_RULE, TapLuat.class).getResultList();
   }
}
